﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace Simple.Repository.SimpleEntitys {

	/// <summary>
	/// 微信用户
	/// </summary>
	[JsonObject(MemberSerialization.OptIn), Table(Name = "wechat_user", DisableSyncStructure = true)]
	public partial class WechatUser {

		[JsonProperty, Column(Name = "id", DbType = "bigint", IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// 绑定手机号
		/// </summary>
		[JsonProperty, Column(Name = "phone")]
		public string Phone { get; set; }

		/// <summary>
		/// 微信UnionId
		/// </summary>
		[JsonProperty, Column(Name = "wechat_unionId")]
		public string WechatUnionId { get; set; }

		/// <summary>
		/// 昵称
		/// </summary>
		[JsonProperty, Column(Name = "nick_name", IsNullable = false)]
		public string NickName { get; set; }

		/// <summary>
		/// 微信OpenId(恩睦照护小程序)
		/// </summary>
		[JsonProperty, Column(Name = "wechat_openId_zhaohu_applet")]
		public string WechatOpenIdZhaohuApplet { get; set; }

		/// <summary>
		/// 微信OpenId(恩睦照护服务号)
		/// </summary>
		[JsonProperty, Column(Name = "wechat_openId_zhaohu_service")]
		public string WechatOpenIdZhaohuService { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[JsonProperty, Column(Name = "create_time", DbType = "datetime")]
		public DateTime CreateTime { get; set; }

		/// <summary>
		/// 更新时间
		/// </summary>
		[JsonProperty, Column(Name = "update_time", DbType = "datetime")]
		public DateTime UpdateTime { get; set; }

	}

}
